<!doctype html>
<%@ taglib prefix="perm" uri="http://wanhuakeji.com/permission" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
<%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
<%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
<script type="text/javascript" src="${path}/html/js/js-jsp/layout-sub.js"></script>
<script type="text/javascript" src="${path}/html/js/js-resource/js-xlsx/xlsx.full.min.js"></script>
<script type="text/javascript"
        src="${path}/html/js/js-jsp/al/alarmSign/alarmSign.js?v=<%out.print(Math.random());%>"></script>
<script>
    searchBtn = <perm:hasPermission permission="rules:al_alarmSign_find"/>;
    viewBtn = <perm:hasPermission permission="rules:al_alarmSign_view"/>;
    exportBtn = <perm:hasPermission permission="rules:al_alarmSign_export"/>;
    resolveBtn = <perm:hasPermission permission="rules:al_alarmSign_resolve"/>;
</script>
<html>
<head>
</head>
<body style="height:100%; ">
<div class="easyui-layout" fit="true" space="2">
    <input type="hidden" id="alarmStatus" value="${alarmStatus}"/>
    <input type="hidden" id="alarmCategory" value="${alarmCategory}"/>
    <div region="north" style="height:100%">
        <div id="alarmSign" class="easyui-layout" fit="true" space="2">
            <div region="north" class="searchToolBar" border="false" style="height: 120px;">
                <fieldset>
                    <legend>系统操作</legend>
                    <form id="alarmSignQueryForm" name="alarmSignQueryForm" method="post">
                        <table class="searchTable">
                            <tr class="searchTableTr">
                                <td>
                                    <input type="hidden" name="id" id="id_" value=""/>
                                    <select class="easyui-combobox" name="prId" id="prid_" label="所属项目：" labelWidth="82"
                                            labelposition="left" style="width: 90%;height: 32px" editable="false">
                                        <option value="">--请选择--</option>
                                    </select>
                                </td>
                                <td>
                                    <select class="easyui-combobox" name="alarmType_" id="alarmType_" label="警报类型："
                                            labelWidth="82" labelposition="left" style="width: 90%;height: 32px"
                                            editable="false">
                                        <option value="">--请选择--</option>
                                        <option value="1">警报</option>
                                        <option value="2">预警</option>
                                    </select>
                                </td>
                                <td>
                                    <select class="easyui-combobox" name="alarmCategory_" id="alarmCategory_"
                                            label="警报类别："
                                            labelWidth="82" labelposition="left" style="width: 90%;height: 32px"
                                            editable="false">
                                        <option value="">--请选择--</option>
                                        <option value="1">起重机械</option>
                                        <option value="2">扬尘设备</option>
                                    </select>
                                </td>
                                <td>
                                    <select class="easyui-combobox" id="alarmStatus_" label="警报状态：" labelWidth="82"
                                            labelposition="left" style="width: 90%;height: 32px" editable="false">
                                        <option value="">--请选择--</option>
                                        <option value="1" ${alarmStatus == 1 ? 'selected="selected"' : ''}>未处理</option>
                                        <option value="2" ${alarmStatus == 2 ? 'selected="selected"' : ''}>已处理</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                        <table class="searchTable" style="margin-top: 0px">
                            <tr class="searchTableTr">
                                <td>
                                    <input class="easyui-datetimebox" data-options="prompt:'请输入开始时间'" id="startDate" name="startDate"
                                           label="开始时间：" labelWidth="82" labelposition="left"
                                           style="width:90%; height: 32px" editable="false">
                                </td>
                                <td>
                                    <input class="easyui-datetimebox" data-options="prompt:'请输入结束时间'" id="endDate" name="endDate"
                                           label="结束时间：" labelWidth="82" labelposition="left"
                                           style="width:90%; height: 32px" editable="false">
                                </td>
                                <td colspan="2" style="width: 50%;">
                                    <div class="searchButton">
                                        <!--警示操作按钮-->
                                        <div id="alarmSign_menu"></div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
            </div>
            <!--警示配置列表-->
            <div region="center" border="false" style="padding: 0px;">
                <div id="alarmSign_dataList"></div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${path}/html/js/js-jsp/common-optionBtnArray.js"></script>
</body>
</html>
